home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12698 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: dish.news.pipex.net!pipex!bt!usenet
  2. From: Phlash <paa@wimbledon.bt.co.uk>
  3. Newsgroups: comp.os.msdos.programmer,comp.lang.c
  4. Subject: Re: problems using int 25h
  5. Date: Tue, 02 Apr 1996 10:34:04 +0000
  6. Organization: BT Labs - but speaking only for myself
  7. Message-ID: <3161029C.3EB@wimbledon.bt.co.uk>
  8. References: <4jjsfv$g41@vixen.cso.uiuc.edu>
  9. NNTP-Posting-Host: 132.146.47.224
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14.  
  15. Jim Marco wrote:
  16. > I'm trying to write a program (in Turbo C 2.0) that scans the hard disk looking
  17. > for certain file signatures.  I want this program to scan sector by sector, so
  18. > I tried using int 25h via the Turbo C absread() command.  The problem is, the
  19. > program works as intended on drive C: which is a 20 meg PC-DOS 5.0 partition,
  20. > but not on drive D: which is a 300 meg partition (same OS).  The call keeps
  21. > returning a "sector not found" error even for low sector values.  Can anyone
  22. > shed any light on this?  Thanks in advance.
  23.  
  24. The DOS absolute read/write calls have different parameter sets for big or
  25. small disk partitions (remember those?). I suspect either you, or absread()
  26. are getting the parameters wrong for 'bigdos' partitions (anything >32MB).
  27.  
  28. Maybe absread() was only intended for manipulating floppy disks :-) I would
  29. write your own using int86x(), and see if the problem goes away...
  30. -- 
  31. !---mailto:paa@wimbledon.bt.co.uk ---! Version: 3.1                         !
  32. !Phil "Phlash" Ashby!+44-1473-293670 ! GAT d(?) s:-- a C++$ ULHS++++ P+ L+  !
  33. !G10,153 Princes St.,Ipswich,England ! E- W++ N++ w++ Y+ PGP+ tv- t+@ X- b+ !
  34. !http://www.wimbledon.bt.co.uk:64000/! DI++ D++ G+ e+++ h---- r++++ y++++   !
  35.